#!/usr/bin/env bash

shopt -s extglob      #shopt命令用来调整 Shell 的参数   extglob模式开启之后Shell可以另外识别出5个模式匹配操作符，能使文件匹配更加方便


npm config set registry=https://registry.npmmirror.com
export ELECTRON_MIRROR=http://npmmirror.com/mirrors/electron/
export PYTHON_MIRROR=http://npmmirror.com/mirrors/python/



sudo apt install -y make python3 build-essential libglib2.0-dev libdbus-1-dev fakeroot
sed -rzi  's#,[^"]*?"dependencies[^\}]+?\}##g'  ./package.json
sed -rzi  's#,[^"]*?"devDependencies[^\}]+?\}##g'  ./package.json
sudo  rm -rf ./node_modules
sudo  rm -rf ./package-lock.json
npm cache clean -f
npm --version

#electron 
npm i --save-dev electron  --force
npm i --save-dev electron-builder

#vue
npm i --save-dev vue vite
npm i --save-dev @vitejs/plugin-vue
npm i --save-dev vue-router
npm i --save-dev unplugin-auto-import
npm i mitt
npm i --save-dev pinia
npm i --save-dev sass
npm i --save-dev chalk     #控制台输出颜色
 

#GUI
 


#nodejs
npm i  lodash-es    #lodash
  

#ffmpeg
 
#数据库
 

#终端
 



#无头浏览器 puppeteer
 

  
#静态站点生成器 (SSG)  webSocket
npm i --save-dev vitepress   

#npm i connect-history-api-fallback  #单页需要 Single Page Applications (SPA) typically only utilise one index file that is accessible by web


#富文本编辑
 


#babylonjs
 

#列出过期的包
npm outdated    